﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<QL_LICHLAMVIEC.Models.TaiKhoan>>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Admin</title>
    <link rel='STYLESHEET' type="text/css" href="../../Content/default.css"/>
    <style type="text/css">
        .style2
        {
        }
        </style>
</head>
<body>
<table  border=0 cellpadding=5 cellspacing=0 align="center">
		<tr>
		<td colspan="1"><img src="../../Content/Images/logo.png" alt=""/>
		<div style="color:red;text-align:right;font-family:Tahoma;font-size:13;font-weight:bold;"></div><div style="color:blue;text-align:right;font-family:Tahoma;font-size:13;"></div>&nbsp;</td>
	</tr>
			<tr><td colspan="1" bgcolor="#336699" align="right" style="color:white">Hôm nay <%:DateTime.Today.ToString("dd/MM/yyyy") %></td></tr>
		
	<tr>
    <% using (Html.BeginForm()) { %>
		<td><table align="center" cellpadding=1>
        <tr>
                <td>&nbsp;</td>
               
            </tr>
            <tr>
                <td>
            
        <table border="0" style="border: solid 0px black;" align="center">
            <tr>
                <td class="style2" colspan="2"><h4>QUẢN LÝ TÀI KHOẢN</h4></td>
            </tr>
            <tr>
                <td class="style2">MSNV</td>
                <td><%: Html.TextBox("MSNV")%> </td>
            </tr>
            <tr>
                <td class="style2">Họ tên</td>
                <td><%: Html.TextBox("hoten")%> </td>
            </tr>
            <tr>
                <td class="style2">Ngày sinh:</td>
                <td><%: Html.TextBox("ngaysinh")%> </td>
            </tr>
            <tr>
                <td class="style2">Điện thoại</td>
                <td><%: Html.TextBox("dienthoai")%> </td>
            </tr>
            <tr>
                <td class="style2">Chức vụ</td>
                <td><%: Html.TextBox("chucvu")%> </td>
            </tr>
            <tr>
                <td class="style2">User Name:</td>
                <td><%: Html.TextBox("username")%> </td>
            </tr>
            <tr>
                <td class="style2">Password:</td>
                <td><%: Html.TextBox("password")%> </td>
            </tr>
            <tr>
                <td class="style2">Email:</td>
                <td><%: Html.TextBox("email")%> </td>
            </tr>
            <tr>
                <td colspan="2">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" value="Thêm" /></td>
            </tr>
        </table>
            </td>
            </tr>
     <% } %>
	<tr>
		<td align="center" style="color:#666666;"><span style="color:Blue; font-weight:bold"> <%=ViewData["msg"] %></span></td>
	</tr>
	<tr>
		<td align="center" style="color:#666666;">&nbsp;</td>
	</tr>
	<tr>
		<td align="center" style="color:#666666;"><table border="1px" cellpadding="3" cellspacing="0"  >
        <tr>
            
            <th>
                MSNV
            </th>
            <th>
                HoTen
            </th>
            <th>
                DienThoai
            </th>
            <th>
                NgaySinh
            </th>
            <th>
                UserName
            </th>
            <th>
                Password
            </th>
            <th>
                Email
            </th>
            <th>
                Chucvu
            </th>
            <th></th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            
            <td>
                <%: item.MSNV %>
            </td>
            <td>
                <%: item.HoTen %>
            </td>
            <td>
                <%: item.DienThoai %>
            </td>
            <td>
               <%-- <%: String.Format("{0:g}", item.NgaySinh) %>--%>
                <%: DateTime.Parse(item.NgaySinh.ToString()).ToString("dd/MM/yyyy") %>
            </td>
            <td>
                <%: item.UserName %>
            </td>
            <td>
                <%: item.Password %>
            </td>
            <td>
                <%: item.Email %>
            </td>
            <td>
                <%: item.Chucvu %>
            </td>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.MSNV}) %> |
                <%: Html.ActionLink("Delete", "Delete", new { id = item.MSNV })%>
            </td>
        </tr>
    
    <% } %>

    </table></td>
	</tr>
	<tr>
		<td align="center" style="color:#666666;">&nbsp;</td>
	</tr>
	<tr>
		<td align="center" style="color:#666666;">&nbsp;</td>
	</tr>
	<tr>
		<td align="center" style="color:#666666;">&nbsp;</td>
	</tr>
</table>
</td>

	</tr>
			<tr>
		<td  colspan="1" bgcolor="#336699" align="center" style="color:white" >
		 Copyright &copy; 2010  - 2011 Saigon Technology University <br>		
		</td>
	</tr>
</table>
        <div style='width:100%; font-family: Arial; font-size: 10pt;' align="left">
   
    </div>

        <%--<table class="style3">
            <tr>
                <td>
                    Họ tên</td>
                <td>
                    Ngày sinh</td>
                <td>
                    Điện thoại</td>
                <td>
                    Chức vụ</td>
                <td>
                    User name</td>
                <td>
                    Password</td>
                <td>
                    Email</td>
            </tr>
            <%foreach (var item in Model)
              { %>
            <tr>
                <td>
                <%= Html.ActionLink("Edit", "Edit", new {id=item.MSNV}) %> |
             <%--   <%= Html.ActionLink("Details", "Details", new { id=item.AlbumId })%> |
                <%= Html.ActionLink("Delete", "Delete", new { id=item.AlbumId })%></td>--
                
        </table>--%>

</body>
</html>
